<!--
 * @Author: DUST
 * @Date: 2023-05-19 15:08:30
 * @LastEditors: DUST
 * @LastEditTime: 2023-05-29 09:57:07
 * @FilePath: \vite-project\src\components\bgCanvas.vue
 * @Description: 
 * undefined
-->
<template>
  <canvas id="bgCanvas"></canvas>
</template>

<script lang="ts" setup>
import Starry from "@/class/bgCanvas";
import { nextTick } from "vue";
nextTick(() => {
  const starry = new Starry();
  starry.init();
  const timer = setInterval(() => {
    starry.moveCircle();
  }, 1);
});
</script>

<style lang="less" scoped>
#canvas {
  display: block;
  background: #000;
  margin: 0 auto;
}
</style>
